// <!-- auto generated navs start -->
const autoGenHeaderNavs = [];
const autoGenAsideNavs = [
  { text: 'Homepage', to: '/Homepage', icon: 'nav-list' },
  { text: 'homeindex', to: '/homeindex', icon: 'nav-list' },
  { text: 'Homeindex', to: '/Homeindex', icon: 'nav-list' },
];

// <!-- auto generated navs end -->

const customHeaderNavs = [
  {
    text: '首页',
    to: '/',
    icon: 'home',
  }
];

const customAsideNavs = [
  {
    text: 'DashBoard',
    to: '/',
    icon: 'cascades',
  },
  {
    text: '渠道管理',
    icon: 'customize',
    to : '/channel',
    children: [
      {
        text : '渠道列表',
        to : '/channel/list',
      },
      {
        text : '新增渠道',
        to : '/channel/add',
      }
    ]
  },{
    text: '公司管理',
    icon: 'home',
    to : '/company',
    children: [
      {
        text : '公司列表',
        to : '/company/list',
      }, {
        text : '新增公司',
        to : '/company/add',
      }, {
        text : '补全公司信息',
        to : '/company/supplement',
      },
    ]
  },
  {
    text: '业务员管理',
    to: '/user',
    icon: 'yonghu',
    children: [
      {
        text : '业务员列表',
        to : '/user/list',
      },
      {
        text : '新增业务员',
        to : '/user/add',
      }
    ]
  },
  {
    text: '广告投放',
    to: '/publish',
    icon: 'publish',
    children: [
      {
        text : '广告投放',
        to : '/publish/add',
      },
      {
        text : '广告投放列表',
        to : '/publish/list',
      }
    ]
  }
];

function transform(navs) {
  // custom logical
  return [...navs];
}

export const headerNavs = transform([
  ...autoGenHeaderNavs,
  ...customHeaderNavs,
]);

export const asideNavs = transform([...autoGenAsideNavs, ...customAsideNavs]);
